# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pystrich
pkgver=0.9
pkgrel=1
pkgdesc='A Python module to generate 1D and 2D barcodes (Code 39, Code 128, DataMatrix, QRCode and EAN13). Forked from huBarcode.'
arch=('any')
url='https://pypi.org/project/pystrich/#files'
license=('Apache2')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/a6/e1/76feba239737895214b5066177f6e01055083632b49312c271b1b2936f9e/pyStrich-$pkgver.tar.gz")
sha512sums=('00294103a17eb39592afd390bf6c124d903a67ba0a05b6d7b5359f6b213619f1bd731242ae66ee372b4b26aa4e9a6b9d982e8aa91db7e2ff2f9af8fdbabb1997')

build() {
  cd "pyStrich-$pkgver"

  python setup.py build
}

package() {
  cd "pyStrich-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

